﻿using System;
using System.Windows.Forms;
using System.Configuration;
//using System.Collections.Generic
//using System.ComponentModel
//using System.Data
//using System.Drawing
//using System.Linq
//using System.Text


namespace NCRE学生考试端V1._0
{
    public partial class frmSecondLogin : Form
    {
        public frmSecondLogin()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 二次登录密码验证界面-韩梦甜-2015-12-14
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string strPWD = ConfigurationManager.ConnectionStrings["SecondLoginPWD"].ConnectionString;
            if (txtPWD.Text == strPWD)
            {
                FrmLogin frmlogin = new FrmLogin();
                frmlogin.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("密码错误，请重新输入！");
                txtPWD.Focus();
            }
        }
    }
}
